#!/bin/bash
# translates a fasta file to a tab file.

# parameters.
fasta_file=$2
tab_file=$1

# execute awk.
awk '
BEGIN {
	FS = "\t";
}
{
	printf(">%s\n%s\n",$1,$2);
}' $tab_file > $fasta_file
